local skel = fk.CreateSkill{
  name = "lb__suishi",
}

Fk:loadTranslationTable{
  ["lb__suishi"] = "碎石",
  [":lb__suishi"] = "出牌阶段，你可以将一张防具牌置入一名其他角色的装备区，若其已有防具则替换之；你的【杀】无视防具，且装备防具的角色无法响应你的【杀】且你使用【杀】对其造成的伤害+1。",

  ["#lb__suishi_damage"] = "碎石",
  ["#lb__suishi_zhong"] = "碎石",
  ["#lb__suishi"] = "碎石：你可以将一张防具牌置入一名其他角色的装备区，若其已有防具则替换之",
  
  ["$lb__suishi1"] = "慌什么，来的都是客！",
  ["$lb__suishi2"] = "本次演出大获成功！",
}

skel:addEffect("active", {
  prompt = "#lb__suishi",
  anim_type = "support",
  card_num = 1,
  target_num = 1,
  card_filter = function (self, player, to_select, selected)
    return #selected == 0 and Fk:getCardById(to_select).sub_type == Card.SubtypeArmor
  end,
  target_filter  = function (self, player, to_select, selected, selected_cards)
    return #selected == 0 and #selected_cards == 1 and to_select ~= player and
    to_select:canMoveCardIntoEquip(selected_cards[1])
  end,
  on_use = function(self, room, effect)
    local player = effect.from
    local target = effect.tos[1]
    room:moveCardIntoEquip(target, effect.cards[1], skel.name, true, player)
  end,
})

skel:addEffect(fk.DamageCaused, {
  anim_type = "offensive",
  is_delay_effect = true,
  can_trigger = function(self, event, target, player, data)
   return target == player and player:hasSkill(skel.name) and data.card and data.card.trueName == "slash" and data.to:getEquipment(Card.SubtypeArmor)
  end,
  on_use = function(self, event, target, player, data)
    data.damage = data.damage + 1
  end,
})

skel:addEffect(fk.TargetConfirmed, {
  is_delay_effect = true,
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and data.card.trueName == "slash" and data.from == player
  end,
  on_use = function(self, event, target, player, data)
    target:addQinggangTag(data)
    if target:getEquipment(Card.SubtypeArmor) then
      data.disresponsive = true
    end
  end,
})

return skel